<?php
// +----------------------------------------------------------------------
// | Qbt CMS Plugin
// +----------------------------------------------------------------------
// | Copyright (c) 2012-2018 http://www.qbt8.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: 黄老邪 <develop02@qbt8.com>
// +----------------------------------------------------------------------
namespace plugins\qbt_exception_page;

use cmf\lib\Plugin;

class QbtExceptionPagePlugin extends Plugin
{

    public $info = [
        'name'        => 'QbtExceptionPage',
        'title'       => '系统错误页面',
        'description' => '千佰特系统错误页面插件',
        'status'      => 1,
        'author'      => '千佰特',
        'version'     => '1.0',
        'demo_url'    => 'http://www.qbt8.com',
        'author_url'  => 'http://www.qbt8.com'
    ];

    public $hasAdmin = 0;//插件是否有后台管理界面

    // 插件安装
    public function install()
    {
        return true;//安装成功返回true，失败false
    }

    // 插件卸载
    public function uninstall()
    {
		return true;//卸载成功返回true，失败false
    }
	public function appBegin()
	{
        config('exception_tmpl', WEB_ROOT . 'plugins/' .'qbt_exception_page/exception_page.html');
	}
}